yama: Disable by default
authorBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2013 03:35:28 +0000 (04:35 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 19 Jun 2017 23:25:45 +0000 (00:25 +0100)
Gbp-Pq: Topic debian
Gbp-Pq: Name yama-disable-by-default.patch

security/yama/yama_lsm.c

index 88271a3bf37f8378fbc6be1d63dd6b4d2de8054c..a89d13eeaff88ada070f74aacd8a09225d4aab36 100644 (file)
@@ -28,7 +28,7 @@
 #define YAMA_SCOPE_CAPABILITY  2
 #define YAMA_SCOPE_NO_ATTACH   3
 
-static int ptrace_scope = YAMA_SCOPE_RELATIONAL;
+static int ptrace_scope = YAMA_SCOPE_DISABLED;
 
 /* describe a ptrace relationship for potential exception */
 struct ptrace_relation {
@@ -484,7 +484,7 @@ static inline void yama_init_sysctl(void) { }
 
 void __init yama_add_hooks(void)
 {
-       pr_info("Yama: becoming mindful.\n");
+       pr_info("Yama: disabled by default; enable with sysctl kernel.yama.*\n");
        security_add_hooks(yama_hooks, ARRAY_SIZE(yama_hooks), "yama");
        yama_init_sysctl();
 }